package com.erp.dto;

import java.util.Date;

import com.erp.domain.TProcessDeployment;

/**
 * 用来描述流程定义
 * 
 * @author 陈凯
 * 
 */
public class ProcessDeployment implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;
	private Integer state;
	private String procDefId;
	private String procInstId;
	private String key;
	private String name;
	private Integer version;
	private String description;
	private Date deployTime;
	private User deployUser;

	public ProcessDeployment() {
	}

	public ProcessDeployment(TProcessDeployment tProcDep) {
		this.id = tProcDep.getId();
		this.state = tProcDep.getState();
		this.procDefId = tProcDep.getProcDefId();
		this.key = tProcDep.getKey();
		this.name = tProcDep.getName();
		this.version = tProcDep.getVersion();
		this.description = tProcDep.getDescription();
		this.procInstId = tProcDep.getProcInstId();
		this.deployTime = tProcDep.getDeployTime();
		this.deployUser = new User(tProcDep.gettDeployUser());
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getProcDefId() {
		return procDefId;
	}

	public void setProcDefId(String procDefId) {
		this.procDefId = procDefId;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getProcInstId() {
		return procInstId;
	}

	public void setProcInstId(String procInstId) {
		this.procInstId = procInstId;
	}

	public Date getDeployTime() {
		return deployTime;
	}

	public void setDeployTime(Date deployTime) {
		this.deployTime = deployTime;
	}

	public User getDeployUser() {
		return deployUser;
	}

	public void setDeployUser(User deployUser) {
		this.deployUser = deployUser;
	}

}
